package com.ftg.elvis.mapper;


import com.ftg.elvis.pojo.Introduce;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AdminIntriduceMapper {

	@Select("select * from introduce order by iid limit #{arg0}, #{arg1}")
	List<Introduce> showAll(int page, int limit);

	@Select("select count(*) from introduce")
	int getCount();

	@Update("update introduce set title = #{title} where iid = #{iid}")
	int update(Introduce intriduce);
}